from django.db import models

# Create your models here.

class User(models.Model):
    user_img=models.ImageField(verbose_name="用户头像",null=True)
    user_name=models.CharField(verbose_name="用户名称",max_length=50)
    user_pwd=models.CharField(verbose_name="用户密码",max_length=50)
    user_email=models.EmailField(verbose_name="用户邮箱",null=True)
    user_introduce=models.CharField(verbose_name="自我介绍",max_length=100)
    user_address=models.CharField(verbose_name="用户地址",max_length=50)
    create_time=models.DateTimeField(verbose_name="创建时间",auto_now_add=True)
    update_time=models.DateTimeField(verbose_name="修改时间",auto_now=True)
    deleted=models.BooleanField(verbose_name="逻辑删除", default=False)
    class Meta:
        db_table='user'